<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01DOM操作</title>
</head>
<body>

    <button onclick="addMoney()">点我变富</button>
    <script>
        function addMoney(){
            let imgE = document.createElement('img');
            imgE.src = 'img/money.jpg';
            imgE.width=100;
            let bodyE = document.querySelector('body');
            bodyE.append(imgE);
        }
    </script>
</body>
</html>